.class public abstract Lcom/a0soft/gphone/app2sd/main/MainBaseWnd;
.super Landroid/app/Activity;
.source "MainBaseWnd.java"


# instance fields
.field private a:Landroid/os/Handler;


# direct methods
.method public constructor <init>()V
    .locals 0

    .prologue
    .line 15
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    return-void
.end method

.method private a()V
    .locals 0

    .prologue
    .line 72
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/MainBaseWnd;->b()V

    .line 75
    return-void
.end method

.method static synthetic a(Lcom/a0soft/gphone/app2sd/main/MainBaseWnd;)V
    .locals 0
    .parameter

    .prologue
    .line 15
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/MainBaseWnd;->a()V

    return-void
.end method

.method private b()V
    .locals 2

    .prologue
    .line 97
    iget-object v0, p0, Lcom/a0soft/gphone/app2sd/main/MainBaseWnd;->a:Landroid/os/Handler;

    const/16 v1, 0x64

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    .line 98
    return-void
.end method

.method private c()Z
    .locals 3

    .prologue
    const/4 v2, 0x1

    .line 103
    invoke-static {p0}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->m(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 104
    invoke-static {p0}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->n(Landroid/content/Context;)V

    .line 106
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/a0soft/gphone/app2sd/main/AboutWnd;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 107
    const-string v1, "sp"

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 108
    const/16 v1, 0x64

    invoke-virtual {p0, v0, v1}, Lcom/a0soft/gphone/app2sd/main/MainBaseWnd;->startActivityForResult(Landroid/content/Intent;I)V

    move v0, v2

    .line 111
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private d()Z
    .locals 2

    .prologue
    .line 117
    invoke-static {p0}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->k(Landroid/content/Context;)I

    move-result v0

    .line 118
    invoke-static {p0}, Lcom/a0soft/gphone/app2sd/main/PrefWnd;->l(Landroid/content/Context;)V

    .line 119
    const/16 v1, 0x9

    rem-int/lit8 v0, v0, 0xa

    if-ne v1, v0, :cond_0

    .line 120
    const/4 v0, 0x1

    .line 122
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private e()V
    .locals 3

    .prologue
    .line 128
    new-instance v0, Landroid/app/AlertDialog$Builder;

    invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v1, 0x1080027

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setIcon(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f05004c

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setTitle(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f05004d

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(I)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setCancelable(Z)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const-string v1, "No"

    new-instance v2, Lcom/a0soft/gphone/app2sd/main/aa;

    invoke-direct {v2, p0}, Lcom/a0soft/gphone/app2sd/main/aa;-><init>(Lcom/a0soft/gphone/app2sd/main/MainBaseWnd;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    const-string v1, "Yes"

    new-instance v2, Lcom/a0soft/gphone/app2sd/main/z;

    invoke-direct {v2, p0}, Lcom/a0soft/gphone/app2sd/main/z;-><init>(Lcom/a0soft/gphone/app2sd/main/MainBaseWnd;)V

    invoke-virtual {v0, v1, v2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->show()Landroid/app/AlertDialog;

    .line 159
    return-void
.end method


# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 59
    const/16 v0, 0x64

    if-ne p1, v0, :cond_0

    .line 60
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/MainBaseWnd;->a()V

    .line 65
    :goto_0
    return-void

    .line 63
    :cond_0
    invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V

    goto :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1
    .parameter

    .prologue
    .line 25
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 27
    const v0, 0x7f030004

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/MainBaseWnd;->setContentView(I)V

    .line 29
    new-instance v0, Lcom/a0soft/gphone/app2sd/main/y;

    invoke-direct {v0, p0}, Lcom/a0soft/gphone/app2sd/main/y;-><init>(Lcom/a0soft/gphone/app2sd/main/MainBaseWnd;)V

    iput-object v0, p0, Lcom/a0soft/gphone/app2sd/main/MainBaseWnd;->a:Landroid/os/Handler;

    .line 44
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/MainBaseWnd;->c()Z

    move-result v0

    if-nez v0, :cond_0

    .line 45
    invoke-static {}, Lcom/a0soft/gphone/app2sd/main/CoreApp;->h()Lcom/a0soft/gphone/app2sd/main/CoreApp;

    move-result-object v0

    invoke-virtual {v0}, Lcom/a0soft/gphone/app2sd/main/CoreApp;->b()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 46
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/MainBaseWnd;->d()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 47
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/MainBaseWnd;->e()V

    .line 54
    :cond_0
    :goto_0
    return-void

    .line 52
    :cond_1
    invoke-direct {p0}, Lcom/a0soft/gphone/app2sd/main/MainBaseWnd;->a()V

    goto :goto_0
.end method
